﻿@model System.Data.Entity.DbSet<GameSchool.Models.VideoLecture>

@{
    ViewBag.Title = "Video";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<p>
    @Html.ActionLink("Create New", "CreateVideo")
</p>


@if (Model != null)
{
foreach (var item in Model) 
{
    <table>
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.VideoTitle)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Assignment)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.VideoUrl)
        </td>
        <td>
            @Html.HiddenFor(modelItem => item.Active)
        </td>
        <td>
            @Html.ActionLink("Edit", "EditAssignment", new { id = item.VideoLectureId }) |
            @Html.ActionLink("Details", "Details", new { id = item.VideoLectureId }) |
        </td>
    </tr>
    </table>
}
}
    
    

